<ul id="nav">
    <li class="i_house"><a href="<?=$url?>" <?if($page=='dashboard')echo 'class="active";'?>><span>Home</span></a></li>
    <li class="i_create_write"><a href="javascript:" <?if($page=='article')echo 'class="active"';?>><span>Članci</span></a>
        <ul <?if((($sub=='new_edit_form')||($sub=='preview')||($sub=='articlepreview'))&&($page=='article'))echo 'style="display:block"'?>>
            <? if($this->session->userdata('typeofuser_id')!= 'LT') {?>
                <li><a href="<?=$url?>article/newform" <?if(($sub=='new_edit_form')&&($page=='article')&&(!isset($_GET['id'])))echo 'class="active"'?>><span>Novi članak</span></a></li>
                <?}?>
            <li><a href="<?=$url?>article/preview" <?if(($sub=='preview')&&($page=='article'))echo 'class="active"'?>><span>Pregled članaka</span></a></li>
        </ul>
    </li>
    <? if($this->session->userdata('typeofuser_id')!= 'LT') {?>
        <li class="i_filmcamera"><a href="javascript:" <?if(((($sub=='new_edit_form')||($sub=='preview'))&&($page=='media'))||((($sub=='new_edit_form')||($sub=='preview'))&&($page=='directoryMedia')))echo 'class="active"'?>><span>Medija</span></a>
            <ul <?if(((($sub=='new_edit_form')||($sub=='preview')||($sub=='mediapreview'))&&($page=='media')) || ((($sub=='new_edit_form')||($sub=='preview')||($sub=='directorypreview'))&&($page=='directoryMedia')))echo 'style="display:block"'?>>
                <li><a href="<?=$url?>media/newform?type=img" <?if(($sub=='new_edit_form')&&($page=='media')&&(!isset($_GET['id'])))echo 'class="active"'?>><span>Dodaj mediju</span></a></li>
                <li><a href="<?=$url?>media/preview" <?if(($sub=='preview')&&($page=='media'))echo 'class="active"'?>><span>Pregled medija</span></a></li>
                <li><a href="<?=$url?>directoryMedia/newform" <?if(($sub=='new_edit_form')&&($page=='directoryMedia')&&(!isset($_GET['id'])))echo 'class="active"'?>><span>Novi direktorijum</span></a></li>
                <li><a href="<?=$url?>directoryMedia/preview" <?if(($sub=='preview')&&($page=='directoryMedia'))echo 'class="active"'?>><span>Pregled direktorijuma</span></a></li>            
            </ul>
        </li> 
        <? if($this->session->userdata('typeofuser_id')!= 'JN') {?> 
            <li class="i_book_large"><a href="javascript:" <?if($page=='column')echo 'class="active"';?>><span>Rubrike</span></a> 
                <ul <?if((($sub=='preview')||($sub=='new_edit_form'))&&($page=='column'))echo 'style="display:block"'?>>
                    <li><a href="<?=$url?>column/newform" <?if(($sub=='new_edit_form')&&($page=='column')&&(!isset($_GET['subcolumnid'])))echo 'class="active"'?>><span>Nova rubrika</span></a></li>
                    <li><a href="<?=$url?>column/preview" <?if(($sub=='preview')&&($page=='column'))echo 'class="active"'?>><span>Pregled rubrika</span></a></li>
                </ul>   

            </li>
            <?}?> 
        <?}?>
    <li class="i_digg_2"><a href="javascript:" <?if($page=='caricature')echo 'class="active"';?>><span>Karikatura</span>
            <ul <?if((($sub=='preview')||($sub=='new_edit_form'))&&($page=='caricature'))echo 'style="display:block"'?>>
                <li><a href="<?=$url?>caricature/newform" <?if(($sub=='new_edit_form')&&($page=='caricature')&&(!isset($_GET['caricatureid'])))echo 'class="active"'?>><span>Nova karikatura</span></a></li>
                <li><a href="<?=$url?>caricature/preview" <?if(($sub=='preview')&&($page=='caricature'))echo 'class="active"'?>><span>Pregled karikatura</span></a></li>
            </ul>
        </a>
    </li>
    <li class="i_ichat"><a href="javascript:" <?if($page=='wordofday')echo 'class="active"';?>><span>Riječ dana</span>
            <ul <?if((($sub=='preview')||($sub=='new_edit_form'))&&($page=='wordofday'))echo 'style="display:block"'?>>
                <li><a href="<?=$url?>wordofday/newform" <?if(($sub=='new_edit_form')&&($page=='wordofday')&&(!isset($_GET['wordofdayid'])))echo 'class="active"'?>><span>Nova riječ dana</span></a></li>
                <li><a href="<?=$url?>wordofday/preview" <?if(($sub=='preview')&&($page=='wordofday'))echo 'class="active"'?>><span>Pregled riječi dana</span></a></li>
            </ul>
        </a>
    </li>
    <li class="i_chemical"><a href="javascript:" <?if($page=='recipeofday')echo 'class="active"';?>><span>Recept dana</span>
            <ul <?if((($sub=='preview')||($sub=='new_edit_form'))&&($page=='recipeofday'))echo 'style="display:block"'?>>
                <li><a href="<?=$url?>recipeofday/newform" <?if(($sub=='new_edit_form')&&($page=='recipeofday')&&(!isset($_GET['recipeofdayid'])))echo 'class="active"'?>><span>Novi recept dana</span></a></li>
                <li><a href="<?=$url?>recipeofday/preview" <?if(($sub=='preview')&&($page=='recipeofday'))echo 'class="active"'?>><span>Pregled recepta dana</span></a></li>
            </ul>
        </a>
    </li>
    <li class="i_wizard"><a href="javascript:" <?if($page=='horoscope')echo 'class="active"';?>><span>Horoskop</span>
            <ul <?if((($sub=='preview')||($sub=='new_edit_form'))&&($page=='horoscope'))echo 'style="display:block"'?>>
                <li><a href="<?=$url?>horoscope/newform" <?if(($sub=='new_edit_form')&&($page=='horoscope')&&(!isset($_GET['horoscopeid'])))echo 'class="active"'?>><span>Novi horoskop</span></a></li>
                <li><a href="<?=$url?>horoscope/preview" <?if(($sub=='preview')&&($page=='horoscope'))echo 'class="active"'?>><span>Pregled horoskopa</span></a></li>
            </ul>
        </a>
    </li>
    <li class="i_clipboard"><a href="javascript:" <?if($page=='comments')echo 'class="active"';?>><span>Komentari</span>
            <ul <?if((($sub=='preview')||($sub=='new_edit_form'))&&($page=='comments'))echo 'style="display:block"'?>>
                <li><a href="<?=$url?>comments/preview" <?if(($sub=='preview')&&($page=='comments'))echo 'class="active"'?>><span>Pregled komentara</span></a></li>
                <li><a href="<?=$url?>comments/preview/aproved" <?if(($sub=='preview_aproved')&&($page=='comments'))echo 'class="active"'?>><span>Pregled odobrenih</span></a></li>
                <li><a href="<?=$url?>comments/preview/blocked" <?if(($sub=='preview_blocked')&&($page=='comments'))echo 'class="active"'?>><span>Pregled blokiranih</span></a></li>
            </ul>
        </a>
    </li>
    <? if($this->session->userdata('typeofuser_id')== 'AD') {?>
    <li class="i_user"><a href="javascript:" <?if($page=='user')echo 'class="active"';?>><span>Korisnici</span>
            <ul <?if((($sub=='preview')||($sub=='new_edit_form'))&&($page=='user'))echo 'style="display:block"'?>>
                <li><a href="<?=$url?>user/newform" <?if(($sub=='new_edit_form')&&($page=='user')&&(!isset($_GET['userid'])))echo 'class="active"'?>><span>Novi korisnik</span></a></li>
                <li><a href="<?=$url?>user/preview" <?if(($sub=='preview')&&($page=='user'))echo 'class="active"'?>><span>Pregled korisnika</span></a></li>
            </ul>
        </a>
    </li>
    <?}?>
</ul>
